package io.tim.mvc_f2.proxy.test;

import org.springframework.stereotype.Component;

@Component
public class HelloImpl implements Hello {

	@Override
	public void say(String name) {
		System.out.println("hello " + name + " !");
		// throw new RuntimeException("Error");
	}

	@Override
	@Tag
	public void sing(String name) {
		System.out.println("sing " + name);

	}
	
	@Tag
	public void goodMorning(String name) {
		System.out.println("Good Morning " + name + " !");
	}
	
	public void goodNight(String name) {
		System.out.println("Good Night " + name + " !");
	}
}
